package be.stijn.gdocs.services;

public enum ExportType {

    // http://code.google.com/intl/nl-NL/apis/documents/docs/3.0/reference.html#ExportParameters

    TXT("txt"),
    ODT("odt"),
    RTF("rtf"),
    PNG("png"),
    ZIP("zip"),
    SWF("swf"),
    PPT("ppt"),
    XLS("xls"),
    CSV("csv"),
    PDF("pdf"),
    ODS("ods"),
    TSV("tsv"),
    HTML("html"),
    DOC("doc");

    private final String type;

    private ExportType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return type;
    }

    public String getFileExtension() {
        return "." + type;
    }
}
